import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import TypeNav from "@/components/TypeNav";
import Pagination from "@/components/Pagination";
import Dialog from "@/components/Dialog";
import "swiper/css/swiper.min.css";

// 启动mock服务器;
import "@/mock";

Vue.config.productionTip = false;

// 注册TypeNav全局组件
Vue.component(TypeNav.name, TypeNav);
Vue.component(Pagination.name, Pagination);
Vue.component(Dialog.name, Dialog);

new Vue({
  beforeCreate() {
    Vue.prototype.$bus = this;
  },
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
